<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('Usergroup/index')}">小组列表</a></li>
        </ul>
		<table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>小组名称</th>
                    <th>小组简介</th>
                    <th>创建时间</th>
                    <th width="50">操作</th>
                </tr>
            </thead>
            <foreach name="ugroups" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.explanation}</td>
                    <td>{$vo.create}</td>
                    <td>
                    <if condition="$vo['id'] neq sp_get_current_adminug_id()">
						<if condition="$vo['status'] eq 1">
							<a href="{:U('Usergroup/down',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要停用此群组吗？"style="color: #FF0000;"><b>已启用</b></a>
						</if>
						<if condition="$vo['status'] eq 2">
							<a href="{:U('Usergroup/up',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要启用此群组吗？">未启用 </a>
						</if>
					<else />
						无
					</if>
                    </td>
                </tr>
            </foreach>
            <thead>
                <tr>
                    <th>ID</th>
                    <th>小组名称</th>
                    <th>小组简介</th>
                    <th>创建时间</th>
                    <th width="50">操作</th>
                </tr>
            </thead>
        </table>

        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
